﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Library/Site.master" AutoEventWireup="false" CodeFile="Clave.aspx.vb" Inherits="Administracion_Clave" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
<table>
<tr>
<th colspan ="2">
Cambio de contraseña
    <asp:HiddenField ID="hdIdUsuario" runat="server" Value="0" />
</th>
</tr>
<tr>
<td>
Usuario:
</td>
<td>
    <asp:Label ID="lblUsuario" runat="server" Text="Label"></asp:Label>
</td>
</tr>
<tr>
<td>
Clave actual:
</td>
<td>
    <asp:TextBox ID="txtpwlActual" runat="server" TextMode="Password"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txtpwlActual" CssClass="error" ErrorMessage="Obligatorio" Display = "Dynamic" ></asp:RequiredFieldValidator>
    <asp:CustomValidator ID="CustomValidator1" runat="server" CssClass="error" 
        Display="Dynamic" ErrorMessage="Clave actual no válida"></asp:CustomValidator>
</td>
</tr>
<tr>
<td>
Nueva clave:
</td>
<td>
    <asp:TextBox ID="txtClave" runat="server" TextMode="Password"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                        ControlToValidate="txtClave" CssClass="error" ErrorMessage="Obligatorio" Display = "Dynamic" ></asp:RequiredFieldValidator>
    <cc1:PasswordStrength ID="txtClave_PasswordStrength" runat="server" 
        TargetControlID="txtClave" DisplayPosition="RightSide" 
            StrengthIndicatorType="BarIndicator"
            PreferredPasswordLength="10"
            HelpStatusLabelID="TextBox2_HelpLabel"
            
            StrengthStyles="BarIndicator_TextBox2_weak;BarIndicator_TextBox2_average;BarIndicator_TextBox2_good"
            
            BarBorderCssClass="BarBorder_TextBox2"
            MinimumNumericCharacters="1"
            MinimumSymbolCharacters="1"
            TextStrengthDescriptions="Very Poor;Weak;Average;Strong;Excellent"
            RequiresUpperAndLowerCaseCharacters="true" >
    </cc1:PasswordStrength>
</td>
</tr>
<tr>
<td>
Repita la nueva clave:
</td>
<td>
    <asp:TextBox ID="txtNuevaClave" runat="server" TextMode="Password"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txtClave" CssClass="error" ErrorMessage="Obligatorio" Display = "Dynamic" ></asp:RequiredFieldValidator>
    <asp:CompareValidator ID="CompareValidator1" runat="server" 
        ErrorMessage="La nueva clave y la validación deben ser iguales" 
        ControlToCompare="txtClave" ControlToValidate="txtNuevaClave" CssClass="error" 
        Display="Dynamic"></asp:CompareValidator>
</td>
</tr>
<tr>
<td class="botones" colspan="2">  
    <asp:Button ID="txtBotonGuardar" runat="server" Text="Guardar" 
        CssClass="boton" />
</td>
</tr>
</table>
</asp:Content>

